<?php

$userid = get_loggedin_userid();
//$userid = get_input('user_id');

$likes = count_interest_ratings_of_user($userid, 2);
$dislikes = count_interest_ratings_of_user($userid, 0);
$neutrals = count_interest_ratings_of_user($userid, -1);

$return = array(
    'likes'         => $likes,
    'dislikes'      => $dislikes,
    'neutrals'      => $neutrals
);

echo json_encode(export_result(200, $return));

?>
